package com.easylinkin.linkappapi.positioning.service;

import com.easylinkin.linkappapi.positioning.entity.ElectronicFence;
import site.morn.rest.RestMessage;

import java.util.List;

/**
 * @program: linkapp-group
 * @description: 电子围栏
 * @author: chenkaixuan
 * @create: 2021-07-27 11:39
 */
public interface ElectronicFenceService {
    /**
     * 保存围栏
     * @param electronicFence
     */
    void saveElectronicFence(ElectronicFence electronicFence);

    /***
     * 配置围栏
     * @param electronicFence
     * @return
     * @throws Exception
     */
    RestMessage configElectronicFence(ElectronicFence electronicFence) throws Exception;

    /**
     * 查询围栏列表
     * @param electronicFence
     * @return
     * @throws Exception
     */
    List<ElectronicFence> electronicFenceList(ElectronicFence electronicFence) throws Exception;

    /***
     * 啥拿出围栏
     * @param electronicFence
     * @return
     * @throws Exception
     */
    RestMessage deleteElectronicFence(ElectronicFence electronicFence) throws Exception;

    /***
     * 保存告警配置
     * @param electronicFence
     */
    void saveAlarmConfig(ElectronicFence electronicFence);

    /***
     * 查询告警配置id
     * @param electronicFence
     * @return
     */
    List<ElectronicFence> getAlarmConfigByIds(ElectronicFence electronicFence);
    /***
     * 查询告警配置ids
     * @param electronicFence
     * @return
     */
    ElectronicFence getAlarmConfigById(ElectronicFence electronicFence);
}
